import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/cdc/` + url, ...arg)

export default {
	async list(data) {
		return await request('list', data, 'post')
	},
	async save(data) {
		return await request('save', data, 'post')
	},
	async setStatusFlag(data) {
		return await request('set_status_flag', data, 'post')
	},
	async start(data) {
		return await request('start', data, 'post')
	},
	async stop(data) {
		return await request('stop', data, 'post')
	},
	async removeById(data) {
		return await request('remove_by_id', data, 'post')
	}
}
